package com.mymall.serve.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 新增用户对象
 *
 * @author weiwei
 * @date 2018/12/6 11:05
 */

@ApiModel(value = "新增用户表单参数")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserAddParam implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称")
    @NotBlank(message = "用户名称不能为空")
    @Size(max = 40,message = "用户姓名过长")
    private String userName;

    /**
     * 移动电话
     */
    @ApiModelProperty(value = "移动电话")
    @NotBlank(message = "移动电话不能为空")
    @Size(max = 30,message = "电话号码过长")
    private String mobilePhone;

    /**
     * 邮件地址
    @ApiModelProperty(value = "邮件地址")
    @NotBlank(message = "邮件地址不能为空")
    @Size(max = 100,message = "邮件地址过长")
    private String mail;
     */

    /**
     * 登录名
     */
    @ApiModelProperty(value = "登录名")
    @NotBlank(message = "登录名不能为空")
    @Size(max = 50,message = "用户账号过长")
    private String loginEntry;

    /**
     * 登录密码
     */
    @ApiModelProperty(value = "登录密码")
    @NotBlank(message = "登录密码不能为空")
    private String loginPwd;

    @ApiModelProperty("角色ID")
    @NotNull(message = "角色id不能为空")
    private List<Long> roleIds;

    @ApiModelProperty(value = "用户ID",hidden = true)
    private List<Long> userIds;
    
}
